<?php

require_once 'db_conn.php';
header("content-type:text/html;charset=utf-8");
$id = $_POST['id'];
$id = intval($id);

$suername = $_POST['suername'];
$sex = $_POST['sex'];
$message = $_POST['message'];
$imgurl = $_POST['imgurl'];
$time_at = time();

$sql = "
    UPDATE 'bbs'.'t_message'
    SET
    'suername'= 'suername',
'sex' = 'sex',
'message' = 'message',
'imgurl' = 'imgurl',
'time_at' = 'time_at'
WHERE 't_message'.'id' = $id;
    ";
    
$result = $conn->query($sql);
//print_r($result);
header("location:index.php");
    
    

        
        
        
